import axios from "axios";
axios.defaults.baseURL = "http://localhost:3000"

// 获取轮播图
// 0: pc

// 1: android

// 2: iphone

// 3: ipad
export function getBanner(type=0){
    return axios.get(`/banner?type=${type}`)
}

//获取推荐歌单 调用此接口 , 可获取推荐歌单
export function getMusicList(limit=10){
    return axios.get(`/personalized?limit=${limit}`)
}

//获取歌单详情
export function getplaylistDetail(id){
    return axios.get(`/playlist/detail?id=${id}`)
}

//获取歌词
export function getLyric(id){
    return axios.get(`/lyric?id=${id}`)
}